package org.example.musicserver.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.example.musicserver.common.Result;
import org.example.musicserver.entity.Song;

import java.util.List;

public interface SongService extends IService<Song> {
    //根据id获取歌曲
    Result songOfId(Integer id);
    //返回所有歌曲信息
    List<Song> getAllSong(String query);
    Result songOfSingerId(Integer id);

    Result songOfSingerIds(List<Integer> ids);

    Result selectList(String query);

    Result addSong(Song song);

    Result updateSong(Song song);

    Result deleteSong(Integer id);
}
